<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Ruby Introduction: Ruby Tutorial - Learn Ruby</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Ruby Introduction: Ruby Tutorial - Learn Ruby" />
<meta name="keywords" content="ruby introduction,ruby tutorial,tutorial on ruby,ruby learn,learn ruby,ruby course" />
<meta name="Distribution" content="Global" />
<meta name="author" content="Satish Talim / Original design: Erwin Aligam - ealigam@gmail.com" />
<meta name="copyright" content="Satish Talim 2007 and beyond..." />
<meta name="verify-v1" content="rFu86se+IkbtF+bH8mgJBKwU5HnKaSd8Ghw9umXQOkM=" />
<meta name="robots" content="index,follow" />
<meta http-equiv="Expires" content="0" />
<meta name="revisit-after" content="1 days" />
<link rel="stylesheet" href="/images/NewOrange.css" type="text/css" />
<link rel="stylesheet" href="/images/syntaxhighlighter.css" type="text/css" />
<link rel="icon" type="image/ico" href="/images/favicon.ico" />

<!-- Google +1 button code -->
<link rel="canonical" href="/satishtalim/introduction.html" />
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

<!-- Google Analytics code -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-59044-10']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<!-- Google Analytics code ends -->

</head>

<body>
<!-- wrap starts here -->
<div id="wrap">

    <div id="header">

        <h1 id="logo">Ruby<span class="orange">Learning.github.io</span></h1>
        <h2 id="slogan">Helping Ruby Programmers become Awesome!</h2>

    </div>

    <div id="menu">
        <ul>
            <li><a href="/" title="Home page for rubylearning.github.io">Home</a></li>
            <li><a href="/satishtalim/tutorial.html" title="Get started Learning Ruby here...">Tutorial</a></li>
            <li><a href="/download/downloads.html" title="Download this tutorial as an eBook">Downloads</a></li>
            <li><a href="/other/testimonials.html" title="People around the world who benefited from this site">Testimonials</a></li>
            <li><a href="/other/certification.html" title="Get certified in Ruby">Certification</a></li>
            <li><a href="/satishtalim/ruby_guide.html" title="Ruby Guide, Mentor">Mentor</a></li>
            <li><a href="https://blog.rubylearning.github.io/" title="Ruby blog of Ruby Learning site">Blog</a></li>
            <li><a href="/satishtalim/tutorial.html" title="Online Ruby Course">Online Course</a></li>
            <li><a href="http://ruby-challenge.rubylearning.github.io/" title="Ruby Programming Challenge for Newbies">Challenge</a></li>
            <li><a href="/satishtalim/about.html" title="Information about Satish Talim">About</a></li>
        </ul>
    </div>

    <!-- content-wrap starts here -->
    <div id="content-wrap">


            <div id="main">

                <div id="main-inner"><a name="TemplateInfo"></a>
                <h1>Ruby Tutorial: Introduction</h1>

                <h3>Using these Ruby Notes</h3>

                <p class="post-footer align-right">
                  <strong>
                    &lt;<a href="/satishtalim/tutorial.html">TOC | </a>
                    <a href="/satishtalim/ruby_installation.html">Installation&gt;</a>
                  </strong>
                </p>

                <p>The <strong>Ruby Study Notes</strong> is a step-by-step tutorial to programming in <strong>Ruby</strong> and you can follow it page by page, reading the text and running the sample programs. There are no large applications here - just small, self-contained sample programs.</p>

                <p>On the menu-items at the top, you will find a menu-item named <a href="/satishtalim/tutorial.html" >Tutorial</a>. This contains links to all the topics you require to study the Ruby programming language. Also, at the bottom of every page you will see the Learning Ruby Navigation that takes you to either the Previous, Next page or the Table of Contents.</p>

                <p>Though we would be discussing Ruby on the Windows platform, these notes are appropriate for Linux/Mac users as well.</p>

                <p>Explanatory notes (generally provides some hints or gives a more in-depth explanation of some point mentioned in the text) are shown in a shaded box like this:</p>

                <p class="post-note">
                This is an explanatory note related to Ruby. You can skip it if you like - but if you do so, you may miss something of interest-!
                </p>

                <p class="post-note">
                <strong>IN RAILS</strong>: This explains how the relevant Ruby topic is being used in Rails.
                </p>

                <p>When there is a sample program to accompany the code, the program name is shown like this: <strong>hello.rb</strong>
                </p>

                <p>Any source code in these study notes, is written like this:</p>

                <div class="column2">
                <!-- InstanceBeginEditable name="Code" -->
                <textarea name="code" class="ruby:nogutter:nocontrols" rows="15" cols="60">
                def hello
                  puts 'hello'
                end
                </textarea>
                <!-- InstanceEndEditable -->
                </div>

                <p class="post-note">Ruby Code layout is pretty much up to you; indentation is not significant (but using two-character indentation is a common convention amongst Rubyists).</p>

                <p>You can download the source code of all the programs shown in the eBook from <a href="http://tinyurl.com/2g4t92">here</a> or you can cut-paste all of the <a href="/satishtalim/course_ruby_programs.html">Ruby programs on this site</a>. Please remember that in Ruby, there's always more than one way to solve a given problem.</p>

                <p>If you want to learn Core Ruby Programming, do join the batch at <a href="http://courses.rubylearning.org/">http://courses.rubylearning.org/</a>.</p>

                <p>Over 45000+ people from across the globe (from over 140 countries) have either already learnt or are in the process of learning Core Ruby from that site.</p>

                <p><strong>RubyLearning</strong> is the first and only site in the world that teaches Core Ruby Programming since 2005. Over 10 Mentors help you through the learning process - 24x7.</p>

                <p>To best view this Web site, please consider the following recommendations.</p>

                <p>This site is best viewed with a resolution of 1024x768 and supports Firefox 1.0+, Google Chrome, Microsoft Internet Explorer 6.0+, and Safari 1.2+.  A minimum modem connection speed of 56Kbps is recommended and that you enable JavaScript for this site in your browser's settings. Please visit the links below to download and install the latest version of your browser.</p>

                <ul><li><a href="http://www.mozilla.org/products/firefox/" >Firefox</a></li><li><a href="http://www.google.com/chrome" >Google Chrome</a></li><li><a href="http://www.microsoft.com/windows/ie/default.mspx" >Microsoft Internet Explorer</a></li><li><a href="http://www.apple.com/safari/" >Safari</a></li></ul>

                <p class="post-footer align-right">
                  <strong>
                    &lt;<a href="/satishtalim/tutorial.html">TOC | </a>
                    <a href="/satishtalim/ruby_installation.html">Installation&gt;</a>
                  </strong>
                </p>

            </div>
            <!-- main inner ends here -->
        </div>

            <div id="rightbar">

            </div>

    <!-- content-wrap ends here -->
    </div>

<!-- wrap ends here -->
</div>

<!-- footer starts here -->
<div id="footer">
    <!-- CHANGE THE FOOTER -->
    <p>&copy; 2006-2021 <strong>rubylearning.github.io - A Ruby Tutorial</strong>&nbsp;&nbsp;Page Updated: 5th Jan. 2021 | Design: <a href="mailto:ealigam@gmail.com">Erwin Aligam</a> | Valid: <a href="http://validator.w3.org/check/referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/">Home</a> | <a href="/privacy.html">Privacy</a> | <a href="/sitemap.html">Sitemap</a></p>
</div>
<!-- footer ends here -->

<!-- SyntaxHighlighter code -->
<script src="/js/shCore.js" type="text/javascript"></script>
<script src="/js/shBrushRuby.js" type="text/javascript"></script>
<script type="text/javascript">
dp.SyntaxHighlighter.HighlightAll('code');
</script>
<!-- SyntaxHighlighter code -->
</body>
</html>
